package com.zxy.zxyrpc.retry;

import com.zxy.zxyrpc.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * 重试策略接口
 * todo 等待扩展
 *
 * @author zxy
 * @since 2025/5/28
 **/
public interface RetryStrategy {
    /**
     * 重试
     *
     * @param callable 任务参数
     * @return 结果响应
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;
}
